package cn.stylefeng.guns.modular.rest.basic;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.stylefeng.guns.modular.basic.model.params.SysJiluappVersionsParam;
import cn.stylefeng.guns.modular.basic.service.SysJiluappVersionsService;
import cn.stylefeng.roses.core.base.controller.BaseController;
import cn.stylefeng.roses.core.reqres.response.ResponseData;

/**
 *APP版本
 */
@Controller
@RequestMapping("/rest/sysJiluappVersions")
public class restSysJiluappVersionsController extends BaseController {

    @Autowired
    private SysJiluappVersionsService sysJiluappVersionsService;

    /**
     * 查询最新版本
     */
    @ResponseBody
    @RequestMapping("/newVersions")
    public ResponseData newVersions() {
    	SysJiluappVersionsParam jiluappVersionsParam = new SysJiluappVersionsParam();
        return ResponseData.success(sysJiluappVersionsService.findBySpec(jiluappVersionsParam));
    }
    
    
}
